<h1>{$title}</h1>

<div id="languages">
{foreach from=$languages item=l}
{if $l.state=='active'}
<a href="?language={$l.tag}">{$l.name}</a> 
{/if}
{/foreach}
</div>
<br/>

{if $list}
<h2>{'Compared'|translate}</h2>
<table class="plainlist">
<thead>
<th>tag</th>
<th>value</th>
<th colspan="10">other</th>
</thead>
<tbody>
{foreach from=$list item=i key=k}
<tr>
<th>{$i.tag}</th>
<td>{$i.value}</td>
{foreach from=$i.diff key=field item=value}
<td><b>{$field}</b><br/>«{$value}» → «{$i[$field]}»</td>
{foreachelse}
<td colspan="10" style="color:#888">{'Fully equals'|_}</td>
{/foreach}
</tr>
{/foreach}
</tbody>
</table>
{/if}

{if $listpo}
<h2>{'Exists tags only in po-file'|_}</h2>
<dl>
{foreach from=$listpo item=poe}
<dt>{$poe.tag}</dt>
{foreach from=$poe item=i key=k}
{if $k!='tag'}
<dd><b>{$k}</b>: {$i}</dd>
{/if}
{/foreach}
{/foreach}
</dl>
{/if}


{if $listdb}
<h2>{'Exists tags only in database'|_}</h2>
<dl>
{foreach from=$listdb item=dbe}
<dt>{$dbe.tag}</dt>
{foreach from=$poe item=i key=k}
{if $k!='tag'}
<dd><b>{$k}</b>: {$i}</dd>
{/if}
{/foreach}
{/foreach}
</dl>
{/if}


{if !$list && !$listpo && !$listdb}
<p>{'Not available bqz have no permitions.'|_}</p>
{/if}
